package com.jiyun.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class Result implements Serializable {
    private String msg;
    private Integer code;
    private Object data;
    public static Result OK(Integer code,Object data){
        Result result = new Result();
        result.setCode(code);
        result.setData(data);
        return  result;
    }
    public static Result EOER(Integer code,String msg){
        Result result = new Result();
        result.setCode(code);
        result.setMsg(msg);
        return  result;
    }
}
